.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 工具页面头部 */
.toolHeader {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 40px 0;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 0;
}

.toolHeader::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-image: radial-gradient(circle at right top, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.backLink {
  color: #b3b3cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.backLink:hover {
  color: #64ffda;
}

.toolTitle {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #ffffff, #64ffda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.toolDescription {
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* 工具内容 */
.toolContent {
  padding-bottom: 80px;
}

.toolCard {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

/* 上传区域样式 */
.uploadSection {
  padding: 20px;
}

/* 设置部分 */
.compressionSettings {
  margin-top: 20px;
}

.compressionSettings h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.qualitySlider {
  margin-bottom: 30px;
}

.qualitySlider span {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.qualityHint {
  margin-top: 10px;
  color: #666;
  font-size: 0.9rem;
}

/* 图片预览 */
.imagePreview {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7fa;
  position: relative;
}

.imagePreview img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.imageInfo {
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  color: #333;
}

/* 结果部分 */
.resultSection {
  margin-top: 20px;
}

.resultSection h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.compareRow {
  margin-bottom: 30px;
}

.imageCompare {
  height: 100%;
}

.imageCompare h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #1a1a2e;
}

.savedSize {
  color: #00c853;
  font-weight: 500;
}

.actionButtons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* 提示部分 */
.toolTips {
  background: #f9fafc;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 40px;
}

.toolTips h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 15px;
}

.toolTips ul {
  padding-left: 20px;
  margin: 0;
}

.toolTips li {
  margin-bottom: 10px;
  color: #4a4a6a;
  line-height: 1.6;
}

.toolTips li:last-child {
  margin-bottom: 0;
}

/* 压缩结果统计样式 */
.compression-stats-card {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.stat-item {
  flex: 1 1 45%;
  margin: 8px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.stat-item strong {
  margin-right: 8px;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .stat-item {
    flex: 1 1 100%;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .toolHeader {
    padding: 30px 0;
  }
  
  .toolTitle {
    font-size: 1.8rem;
  }
  
  .toolDescription {
    font-size: 1rem;
  }
  
  .actionButtons {
    flex-direction: column;
  }
} 